import request from '@/utils/request'

// 查询距离金额管理列表
export function listDistanceAmount(query) {
  return request({
    url: '/backStage/distanceAmount/list',
    method: 'get',
    params: query
  })
}

// 查询距离金额管理详细
export function getDistanceAmount(id) {
  return request({
    url: '/backStage/distanceAmount/' + id,
    method: 'get'
  })
}

// 新增距离金额管理
export function addDistanceAmount(data) {
  return request({
    url: '/backStage/distanceAmount',
    method: 'post',
    data: data
  })
}

// 修改距离金额管理
export function updateDistanceAmount(data) {
  return request({
    url: '/backStage/distanceAmount',
    method: 'put',
    data: data
  })
}

// 删除距离金额管理
export function delDistanceAmount(id) {
  return request({
    url: '/backStage/distanceAmount/' + id,
    method: 'delete'
  })
}
